package com.itheima.object;

public class Test {
    public static void main(String[] args) {

        // 创建对象，格式：类名 对象名 = new 类名();
        Person p1 = new Person();
        p1.age = 18;
        p1.gender = "男";
        p1.name = "张三";
        p1.height = 180;
        p1.weight = 70;
        System.out.println(p1.getBMI());

        Person p2 = new Person();
        p2.age = 20;
        p2.gender = "女";
        p2.name = "李四";
        p2.height = 170;
        p2.weight = 50;
        System.out.println(p2.getBMI());

    }
}
